package com.deyuanyun.pic.settings.support.validateFunc;

import com.deyuanyun.pic.common.validator.vinterface.ValidateInterface;
import com.deyuanyun.pic.common.util.ObjectUtil;
import com.deyuanyun.pic.common.validator.vinterface.ValidateInterface;

public class SexValidata implements ValidateInterface {

	@Override
	public <T, E, C> boolean apply(T t, E e, C c) {
		boolean a = false;
		if(ObjectUtil.isNotNullEmpty(t)){
			if((boolean)t.toString().equals("男") || (boolean)t.toString().equals("女")){
				return !a;
			}
		}
		return a;
	}

	@Override
	public String getName() {
		return null;
	}

}
